Goal: Learn letters using Dad's computer code


In [31]:
%matplotlib inline 
import numpy as np
import random

Alphabet=['A','B','C','D','E','F','G',
                 'H','I','J','K','L','M','N',
                 'O','P','Q','R','S','T','U',
                 'V','W','X','Y','Z',
                'a','b','c','e','f','g','h',
                'i','j','k','l','m','n',
                 'o','p','q','r','s','t','u',
                 'v','w','x','y','z']

vowels=['A','E','I','O','U']
consonants=['B','C','D','F','G',
                 'H','J','K','L','M','N',
                 'P','Q','R','S','T','U',
                 'V','W','X','Y','Z']

List_of_numbers=range(0,30)

In [32]:
def generate():
    q=random.choice(Alphabet)
    r=random.choice(List_of_numbers)
    print(q)
    print(r)
    #print(random.choice(consonants)+random.choice(vowels))

In [100]:
generate()


t
21